/*    */ package com.zimbra.cs.filter.jsieve;
/*    */ 
/*    */ import com.zimbra.cs.filter.ZimbraMailAdapter;
/*    */ import java.util.List;
/*    */ import org.apache.jsieve.Arguments;
/*    */ import org.apache.jsieve.SieveContext;
/*    */ import org.apache.jsieve.exception.SieveException;
/*    */ import org.apache.jsieve.mail.MailAdapter;
/*    */ import org.apache.jsieve.tests.AbstractTest;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public final class ListTest
/*    */   extends AbstractTest
/*    */ {
/*    */   protected boolean executeBasic(MailAdapter mail, Arguments args, SieveContext ctx)
/*    */     throws SieveException
/*    */   {
/* 44 */     if (!(mail instanceof ZimbraMailAdapter)) {
/* 45 */       return false;
/*    */     }
/*    */     
/* 48 */     ZimbraMailAdapter adapter = (ZimbraMailAdapter)mail;
/* 49 */     if ((!adapter.getHeader("X-Zimbra-DL").isEmpty()) || (!adapter.getHeader("List-Id").isEmpty())) {
/* 50 */       return true;
/*    */     }
/* 52 */     return false;
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/filter/jsieve/ListTest.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */